package com.kfm.kfmspringboot.service.impl;

import com.kfm.kfmspringboot.model.entity.User;
import com.kfm.kfmspringboot.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public int addUser(User user) {
        return 0;
    }

    @Override
    public List<User> findAll() {
        User user1 = new User();
        user1.setId(1L);
        user1.setAccount("admin");
        user1.setPassword("123456");
        user1.setEmail("123@qq.com");
        User user2 = new User();
        user2.setId(2L);
        user2.setAccount("kaifamiao");
        user2.setPassword("kaifamiao");
        user2.setEmail("kfm@gmail.com");
        return List.of(user1, user2);
    }
}
